﻿using System;

namespace SSP.Api.Options
{
    /// <summary>
    /// 
    /// </summary>
    public class UserOptions : BaseFormatOptions
    {
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string name { get; set; }

        /// <summary>
        ///                     Returns a <see cref="T:System.String" /> that represents the current <see cref="T:System.Object" />.
        /// </summary>
        /// <returns>
        ///                     A <see cref="T:System.String" /> that represents the current <see cref="T:System.Object" />.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override string ToString()
        {
            return (String.IsNullOrEmpty(name) ? "" : name + ",") + QueryString();
        }
    }
}